<table id='transactions' holder_id=<%= @holder.id %> >
  <thead>
  <tr>
    <th>Date</th>
    <th>Credit</th>
    <th>Debit</th>
    <th>Bill</th>
    <th>Balance</th>
  </tr>
  </thead>
  <tbody>
  <% @debit_transactions.each do |transaction| %>
  <tr>
    <td><%= transaction.on_date %></td>
    <td class="credit"></td>
    <td class="debit"><%= transaction.amount %></td>
    <td><%= link_to transaction.reference_id,transaction.reference %></td>
    <td class="time_total"></td>
  </tr>
<% end %>
  <% @credit_transactions.each do |transaction| %>
  <tr>
    <td><%= transaction.on_date %></td>
    <td class="credit"><%= transaction.amount %></td>
    <td class="debit"></td>
    <td><%= link_to transaction.reference_id,transaction.reference %></td>
    <td class="time_total"></td>
  </tr>
<% end %>
</tbody>
</table>
